// Decompiled by GOOSIN CO,LTD Copyright 2010 Pavel Kouznetsov.
// home page: http://www.Goosin.net
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   XmlFile.java

package include.validator;

import org.jdom.Document;
import org.jdom.Element;
import org.jdom.input.SAXBuilder;

public class XmlFile
{

	protected Element root;

	public XmlFile(String file)
	{
		root = null;
		try
		{
			ClassLoader loader = getClass().getClassLoader();
			java.io.InputStream stream = loader.getResourceAsStream(file);
			SAXBuilder builder = new SAXBuilder("org.apache.xerces.parsers.SAXParser");
			Document doc = builder.build(stream);
			root = doc.getRootElement();
		}
		catch (Exception je)
		{
			je.printStackTrace();
		}
	}
}
